package cn.getech.data.development.model.req.realtimeresource;


import cn.getech.data.intelligence.common.utils.PageReq;
import cn.getech.data.intelligence.common.validator.group.AddGroup;
import cn.getech.data.intelligence.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "搜索实时资源请求")
public class RealtimeResourceListReq extends PageReq {
    @ApiModelProperty(value = "实时资源名称")
    private String resourceName;

    @ApiModelProperty(value = "创建人")
    private String username;

    @ApiModelProperty(value = "项目id")
    @NotNull(message = "项目id不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Long procId;

    @ApiModelProperty(value = "资源类型")
    private Long typeResource;

    @ApiModelProperty(value = "文件类型 1:jar 2:py 3:txt 4:sh 5:excel")
    private Integer resourceType;
    private Long menuId;

    @ApiModelProperty(value = "文件扩展名",name = "fileExtension")
    private String fileExtension;

    private Integer  searchUserId;
}
